import request from '@/utils/request'



export function getAllSubjectNoTop(data) {
    return request({
        url: '/by/bubjectClassify/getAllSubjectNoTop',
        method: 'post',
        data:data
    })
}

// 查询学科分类列表
export function listClassify(query) {
    return request({
        url: '/by/bubjectClassify/list',
        method: 'get',
        params: query
    })
}

// 查询学科分类详细
export function getClassify(id) {
    return request({
        url: '/by/bubjectClassify/' + id,
        method: 'get'
    })
}

// 新增学科分类
export function addClassify(data) {
    return request({
        url: '/by/bubjectClassify',
        method: 'post',
        data: data
    })
}

// 修改学科分类
export function updateClassify(data) {
    return request({
        url: '/by/bubjectClassify',
        method: 'put',
        data: data
    })
}

// 删除学科分类
export function delClassify(id) {
    return request({
        url: '/by/bubjectClassify/' + id,
        method: 'delete'
    })
}
